<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

require_once('ProcessSingleItem.php');
/*
 * need to figure out what is going on for deletes. no delete provision in the jrs code...
 */
class ProcessSingleDocument extends ProcessSingleItem{
	function ProcessSingleDocument( &$p ){
		parent::ProcessSingleItem($p);
		$this->ci->load->model('RelatedDocuments_model');
		if( isset($p['relational_fields']) ){
			$rf =& $p['relational_fields'];
			if( is_array($rf) && count($rf) == 2){
				$this->ci->RelatedDocuments_model->setRelationalFields($rf[0], $rf[1]);
			}
		}
		$this->ci->RelatedDocuments_model->setOptionField('document_path');
		$this->model =& $this->ci->RelatedDocuments_model;
	}
}
?>